
//字符串压缩
void zip(char* p) {
    int i = 0, count = 1, point = 0;
    while (p[i]) {
        if (p[i] == p[i + 1])
            count++;
        else {
            if (count != 1) {
                if (count < 10)
                    p[point++] = '0' + count;
                else {
                    p[point++] = '0' + count / 10;
                    p[point++] = '0' + count % 10;
                }
                p[point++] = p[i];
            }
            else
                p[point++] = p[i];
            count = 1;
        }
        i++;
    }
    p[point] = '\0';
    return;
}